/**
 * Created by hanj on 2019/11/4 15:14
 */
package geektime.demo.controller;

import geektime.demo.aop.Permission;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/aop/")
public class AopTestController {

    @GetMapping("hello/{userType}")
    public String hello(@PathVariable(value = "userType") String userType) {
        System.out.println("权限类型:"+userType);
        return "Hello aop!";
    }
}
